import { createRouter, createWebHistory } from 'vue-router'



const routes = [
  {
    path: '/',
    name: 'MainView',
    component: () => import('../views/MainView.vue')
  },
  {
    path: '/login',
    name: 'LoginView',
    component: () => import('../views/LoginView.vue')
  },
  {
    path: '/register',
    name: 'RegisterView',
    component: () => import('../views/RegisterView.vue')
  },
  {
    path: '/edit',
    name: 'EditView',
    component: () => import('../views/EditView.vue')
  },
  {
    path: '/test',
    name: 'TestComponents',
    component: () => import('../views/TestComponents.vue')
  },
  {
    path: '/readmode',
    name: 'ReadModeView',
    component: () => import('../views/ReadModeView.vue')
  },

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
